package ooday05;

public class EnumDemo {
    public static void main(String[] args) {
        Season[] seasons = Season.values();
        for (int i = 0; i < seasons.length; i++) {
            System.out.println(seasons[i]);
            System.out.println(seasons[i].getSeasonDesc());
            System.out.println(seasons[i].getSeasonName());

            switch (seasons[i]){
                case SPRING:
                case SUMMER:
                case WINTER:
                case AUTUMN:
                    System.out.println("天气"+seasons[i].getSeasonDesc()+"放风筝");
                    break;
            }
        }
    }
}
